package com.itheima.service.impl;

import com.itheima.mapper.UserDao;
import com.itheima.pojo.User;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceimpl implements UserService {

    @Autowired
    UserDao userDao;

    @Override
    public User findByUsername(String username) {
       User user = userDao.findByUsername(username);
       return user;
    }
}
